```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>IntelliJ IDEA 数据库工具指南 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.8;
            color: #333;
        }
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        .hero-bg {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .sql-code {
            background-color: #f8f9fa;
            border-left: 4px solid #6e8efb;
        }
        .feature-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .footer-link:hover {
            color: #a777e3 !important;
        }
        .mermaid-container {
            background-color: #f8f9fa;
            border-radius: 0.5rem;
            padding: 1.5rem;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <div class="hero-bg text-white py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-5xl mx-auto text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-6">IntelliJ IDEA 数据库工具完全指南</h1>
            <p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">一站式数据库管理解决方案，让开发效率飞升</p>
            <div class="flex flex-wrap justify-center gap-4">
                <a href="#getting-started" class="bg-white text-indigo-600 hover:bg-gray-100 px-6 py-3 rounded-lg font-medium transition duration-300">
                    <i class="fas fa-rocket mr-2"></i>快速开始
                </a>
                <a href="#features" class="bg-indigo-700 hover:bg-indigo-800 text-white px-6 py-3 rounded-lg font-medium transition duration-300">
                    <i class="fas fa-star mr-2"></i>核心功能
                </a>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <!-- Introduction -->
        <div class="mb-16">
            <p class="text-lg text-gray-700 mb-6">在现代 Java 开发中，数据库操作是不可或缺的一部分。无论是开发 CRUD 业务、优化 SQL 查询，还是调试数据库问题，<strong class="text-indigo-600">高效的数据库管理工具</strong> 都能极大提升开发效率。</p>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8">
                <div class="flex items-start">
                    <div class="feature-icon rounded-lg flex items-center justify-center text-white mr-6">
                        <i class="fas fa-database text-2xl"></i>
                    </div>
                    <div>
                        <h3 class="text-xl font-bold text-gray-800 mb-2">为什么选择 IntelliJ IDEA Database 工具？</h3>
                        <p class="text-gray-600">IntelliJ IDEA <strong>Database 工具（Database Tool）</strong> 提供了一套完整的 <strong>数据库管理、查询、调试、性能优化</strong> 解决方案，帮助开发者在 IDE 内完成大部分数据库操作，无需切换到独立的数据库管理工具（如 Navicat、DBeaver）。</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Getting Started -->
        <div id="getting-started" class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <span class="bg-indigo-100 text-indigo-800 w-10 h-10 rounded-full flex items-center justify-center mr-4">1</span>
                配置 IntelliJ IDEA Database 连接
            </h2>

            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-plug"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">打开 Database 工具</h3>
                        </div>
                        <p class="text-gray-600 mb-4">在 IntelliJ IDEA <strong>右侧工具栏</strong>，找到 <strong>Database</strong> 选项。如果没有显示，可按 <code class="bg-gray-100 px-2 py-1 rounded">Ctrl + Shift + A</code>，搜索 <code class="bg-gray-100 px-2 py-1 rounded">Database</code> 并打开。</p>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-plus-circle"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">添加数据库连接</h3>
                        </div>
                        <ol class="text-gray-600 list-decimal list-inside space-y-2">
                            <li>点击 <code class="bg-gray-100 px-1 py-0.5 rounded">+</code> 按钮 → 选择 <code class="bg-gray-100 px-1 py-0.5 rounded">Data Source</code></li>
                            <li>选择数据库类型（如 MySQL、PostgreSQL、Oracle、SQL Server）</li>
                            <li>填写数据库连接信息</li>
                            <li>下载数据库驱动（若首次使用）</li>
                        </ol>
                    </div>
                </div>
            </div>

            <div class="bg-blue-50 border-l-4 border-blue-500 p-4 rounded-r-lg mb-8">
                <div class="flex">
                    <div class="flex-shrink-0">
                        <i class="fas fa-lightbulb text-blue-500 text-xl"></i>
                    </div>
                    <div class="ml-3">
                        <h3 class="text-sm font-medium text-blue-800">测试连接</h3>
                        <div class="mt-2 text-sm text-blue-700">
                            <p>点击 <code class="bg-blue-100 px-2 py-1 rounded">Test Connection</code> 按钮，若显示 <strong>成功连接</strong>，说明配置正确，可点击 <code class="bg-blue-100 px-2 py-1 rounded">OK</code> 进行保存。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Database Management -->
        <div class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <span class="bg-indigo-100 text-indigo-800 w-10 h-10 rounded-full flex items-center justify-center mr-4">2</span>
                快速管理数据库对象
            </h2>

            <div class="grid md:grid-cols-2 gap-8 mb-8">
                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-table"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">浏览数据库结构</h3>
                        </div>
                        <p class="text-gray-600 mb-4">连接数据库后，在 <strong>Database 视图</strong> 中，可以查看 <strong>表（Tables）、视图（Views）、存储过程（Procedures）等</strong>。</p>
                        <ul class="text-gray-600 list-disc list-inside space-y-2">
                            <li><strong>右键</strong> <code class="bg-gray-100 px-1 py-0.5 rounded">Table</code> → 选择 <code class="bg-gray-100 px-1 py-0.5 rounded">Jump to Data</code>，可以直接查看表数据。</li>
                            <li><strong>右键</strong> <code class="bg-gray-100 px-1 py-0.5 rounded">Table</code> → 选择 <code class="bg-gray-100 px-1 py-0.5 rounded">Modify Table</code>，可以修改表结构。</li>
                        </ul>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-plus-square"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">创建和删除数据库对象</h3>
                        </div>
                        <p class="text-gray-600 mb-4">在 <code class="bg-gray-100 px-1 py-0.5 rounded">Database</code> 视图内：</p>
                        <ul class="text-gray-600 list-disc list-inside space-y-2">
                            <li><strong>右键</strong> <code class="bg-gray-100 px-1 py-0.5 rounded">Schemas</code> → <code class="bg-gray-100 px-1 py-0.5 rounded">New</code> → <code class="bg-gray-100 px-1 py-0.5 rounded">Table</code>，创建新的表</li>
                            <li><strong>右键</strong> <code class="bg-gray-100 px-1 py-0.5 rounded">Table</code> → <code class="bg-gray-100 px-1 py-0.5 rounded">Drop</code>，删除数据库表</li>
                        </ul>
                        <div class="mt-4 p-4 bg-gray-50 rounded-lg">
                            <h4 class="font-medium text-gray-800 mb-2">快捷方式：</h4>
                            <ul class="text-gray-600 space-y-1">
                                <li><code class="bg-gray-100 px-1 py-0.5 rounded">Alt + Insert</code> 创建新表</li>
                                <li><code class="bg-gray-100 px-1 py-0.5 rounded">Shift + F6</code> 重命名表、列</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- SQL Editor -->
        <div class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <span class="bg-indigo-100 text-indigo-800 w-10 h-10 rounded-full flex items-center justify-center mr-4">3</span>
                使用 SQL 编辑器编写和调试 SQL 语句
            </h2>

            <div class="grid md:grid-cols-2 gap-8 mb-8">
                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-terminal"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">打开 SQL 编辑器</h3>
                        </div>
                        <p class="text-gray-600 mb-4">有多种方式可以打开 SQL 编辑器：</p>
                        <ul class="text-gray-600 list-disc list-inside space-y-2">
                            <li><strong>方法 1</strong>：右键 <code class="bg-gray-100 px-1 py-0.5 rounded">Database</code> 视图的数据库 → <code class="bg-gray-100 px-1 py-0.5 rounded">New Query Console</code></li>
                            <li><strong>方法 2</strong>：在数据库连接窗口点击 <code class="bg-gray-100 px-1 py-0.5 rounded">Console</code> 按钮</li>
                        </ul>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-code"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">编写 SQL 语句</h3>
                        </div>
                        <p class="text-gray-600 mb-4">在 <strong>SQL Console</strong> 中，可以编写查询、插入、更新、删除等 SQL 语句：</p>
                        <div class="sql-code p-4 rounded-lg mb-4">
                            <pre class="text-gray-800 font-mono overflow-x-auto"><code>SELECT id, name, age FROM users WHERE age > 25 ORDER BY age DESC;</code></pre>
                        </div>
                        <div class="p-4 bg-gray-50 rounded-lg">
                            <h4 class="font-medium text-gray-800 mb-2">提示功能：</h4>
                            <ul class="text-gray-600 space-y-1">
                                <li><strong>自动补全</strong>：按 <code class="bg-gray-100 px-1 py-0.5 rounded">Ctrl + Space</code> 可自动补全表名、字段名</li>
                                <li><strong>SQL 语法高亮</strong>：不同类型的 SQL 语句高亮显示，便于阅读</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <div class="grid md:grid-cols-2 gap-8 mb-8">
                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-play"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">执行 SQL 语句</h3>
                        </div>
                        <ul class="text-gray-600 list-disc list-inside space-y-2">
                            <li><strong>运行当前 SQL</strong>：<code class="bg-gray-100 px-1 py-0.5 rounded">Ctrl + Enter</code></li>
                            <li><strong>运行选中 SQL 代码</strong>：选中部分 SQL 代码，按 <code class="bg-gray-100 px-1 py-0.5 rounded">Ctrl + Shift + Enter</code></li>
                            <li><strong>格式化 SQL</strong>：<code class="bg-gray-100 px-1 py-0.5 rounded">Ctrl + Alt + L</code></li>
                        </ul>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-table"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">SQL 结果管理</h3>
                        </div>
                        <p class="text-gray-600 mb-4">执行 SQL 后，下方会显示查询结果：</p>
                        <ul class="text-gray-600 list-disc list-inside space-y-2">
                            <li><strong>表格视图</strong>：可直接编辑数据（适用于 <code class="bg-gray-100 px-1 py-0.5 rounded">SELECT</code> 查询）</li>
                            <li><strong>文本视图</strong>：查看大字段数据（如 JSON、XML）</li>
                            <li><strong>导出数据</strong>：右键查询结果 → <code class="bg-gray-100 px-1 py-0.5 rounded">Export to File</code>，支持导出 CSV、JSON、SQL 语句等格式</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <!-- Query Builder -->
        <div class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <span class="bg-indigo-100 text-indigo-800 w-10 h-10 rounded-full flex items-center justify-center mr-4">4</span>
                使用可视化 SQL 设计器（Query Builder）
            </h2>

            <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                            <i class="fas fa-project-diagram"></i>
                        </div>
                        <h3 class="text-xl font-bold text-gray-800">可视化构建查询</h3>
                    </div>
                    <p class="text-gray-600 mb-4">对于不熟悉 SQL 语法或复杂查询，可以使用 IntelliJ IDEA 的 <strong>Query Builder</strong>（可视化查询生成器）。</p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <h4 class="font-medium text-gray-800 mb-2">如何打开 Query Builder</h4>
                            <ol class="text-gray-600 list-decimal list-inside space-y-2">
                                <li>右键 <code class="bg-gray-100 px-1 py-0.5 rounded">SQL Console</code></li>
                                <li>选择 <code class="bg-gray-100 px-1 py-0.5 rounded">Open Query in Query Builder</code></li>
                            </ol>
                        </div>
                        <div>
                            <h4 class="font-medium text-gray-800 mb-2">可视化构建查询</h4>
                            <ul class="text-gray-600 list-disc list-inside space-y-2">
                                <li>选择表 <strong>拖拽字段</strong> 生成 <code class="bg-gray-100 px-1 py-0.5 rounded">SELECT</code> 语句</li>
                                <li>使用 <strong>拖拽方式</strong> 进行表关联（JOIN 操作）</li>
                                <li>设置 <strong>查询条件</strong>（WHERE、ORDER BY）</li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="mt-6 p-4 bg-indigo-50 border-l-4 border-indigo-500 rounded-r-lg">
                        <h4 class="font-medium text-indigo-800 mb-2">一键转换为 SQL</h4>
                        <p class="text-indigo-700">完成查询设计后，点击 <code class="bg-indigo-100 px-2 py-1 rounded">SQL Preview</code>，可自动生成 SQL 代码，适用于复杂 SQL 语句的调试和优化。</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Debugging Procedures -->
        <div class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <span class="bg-indigo-100 text-indigo-800 w-10 h-10 rounded-full flex items-center justify-center mr-4">5</span>
                调试存储过程和函数
            </h2>

            <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden mb-8">
                <div class="p-6">
                    <div class="flex items-center mb-4">
                        <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                            <i class="fas fa-bug"></i>
                        </div>
                        <h3 class="text-xl font-bold text-gray-800">调试存储过程</h3>
                    </div>
                    <p class="text-gray-600 mb-4">如果数据库使用了 <strong>存储过程（Stored Procedure）或函数（Function）</strong>，可以直接在 IntelliJ IDEA 中进行调试。</p>
                    
                    <div class="grid md:grid-cols-2 gap-6">
                        <div>
                            <h4 class="font-medium text-gray-800 mb-2">如何调用存储过程</h4>
                            <div class="sql-code p-4 rounded-lg mb-4">
                                <pre class="text-gray-800 font-mono overflow-x-auto"><code>CALL my_stored_procedure(param1, param2);</code></pre>
                            </div>
                            <ul class="text-gray-600 list-disc list-inside space-y-2">
                                <li><strong>右键</strong> <code class="bg-gray-100 px-1 py-0.5 rounded">Procedures</code> → 选择 <code class="bg-gray-100 px-1 py-0.5 rounded">Execute</code> 直接调用</li>
                                <li><strong>支持断点调试</strong>，方便分析存储过程执行逻辑</li>
                            </ul>
                        </div>
                        <div>
                            <h4 class="font-medium text-gray-800 mb-2">调试存储过程步骤</h4>
                            <ol class="text-gray-600 list-decimal list-inside space-y-2">
                                <li><strong>设置断点</strong>（在存储过程代码中点击左侧灰色栏）</li>
                                <li><strong>点击 Debug 按钮</strong>（或者 <code class="bg-gray-100 px-1 py-0.5 rounded">Ctrl + Shift + D</code>）</li>
                                <li><strong>查看变量值、堆栈信息</strong>，逐步分析存储过程执行逻辑</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Features Section -->
        <div id="features" class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <span class="bg-indigo-100 text-indigo-800 w-10 h-10 rounded-full flex items-center justify-center mr-4">6</span>
                IntelliJ IDEA Database 工具的高效技巧
            </h2>

            <div class="grid md:grid-cols-2 gap-8">
                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-magic"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">自动生成 SQL 语句</h3>
                        </div>
                        <p class="text-gray-600">右键表 → <code class="bg-gray-100 px-1 py-0.5 rounded">SQL Scripts</code> → 选择 <code class="bg-gray-100 px-1 py-0.5 rounded">SELECT</code> / <code class="bg-gray-100 px-1 py-0.5 rounded">INSERT</code> / <code class="bg-gray-100 px-1 py-0.5 rounded">UPDATE</code> / <code class="bg-gray-100 px-1 py-0.5 rounded">DELETE</code> 语句，IDEA 会自动生成 SQL 代码。</p>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-exchange-alt"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">数据对比</h3>
                        </div>
                        <p class="text-gray-600">选中两个表或查询结果 → <code class="bg-gray-100 px-1 py-0.5 rounded">Compare</code>，查看数据差异。</p>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-sync-alt"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">数据库模式同步</h3>
                        </div>
                        <p class="text-gray-600">右键数据库 → <code class="bg-gray-100 px-1 py-0.5 rounded">Synchronize</code>，自动同步本地和远程数据库结构。</p>
                    </div>
                </div>

                <div class="card-hover bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 text-indigo-800 p-2 rounded-lg mr-4">
                                <i class="fas fa-network-wired"></i>
                            </div>
                            <h3 class="text-xl font-bold text-gray-800">连接多个数据库</h3>
                        </div>
                        <p class="text-gray-600">支持 <strong>多个数据库连接</strong>，可在不同数据库间 <strong>拖拽数据</strong> 进行迁移。</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Mermaid Diagram -->
        <div class="mb-16">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 flex items-center">
                <i class="fas fa-diagram-project text-indigo-600 mr-4"></i>
                IntelliJ IDEA 数据库工具功能概览
            </h2>
            
            <div class="mermaid-container">
                <div class="mermaid">
                    graph TD
                        A[IntelliJ IDEA Database Tools] --> B[数据库连接管理]
                        A --> C[数据库对象管理]
                        A --> D[SQL 编辑器]
                        A --> E[Query Builder]
                        A --> F[存储过程调试]
                        
                        B --> B1[多种数据库支持]
                        B --> B2[连接测试]
                        B --> B3[多连接管理]
                        
                        C --> C1[表结构设计]
                        C --> C2[数据浏览编辑]
                        C --> C3[对象创建/删除]
                        
                        D --> D1[智能代码补全]
                        D --> D2[SQL 格式化]
                        D --> D3[执行计划分析]
                        
                        E --> E1[可视化查询构建]
                        E --> E2[自动生成 SQL]
                        E --> E3[复杂查询设计]
                        
                        F --> F1[断点调试]
                        F --> F2[变量监视]
                        F --> F3[逐步执行]
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-12 px-4 sm:px-6 lg:px-8">
        <div class="max-w-5xl mx-auto">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-6 md:mb-0">
                    <h3 class="text-xl font-bold text-white mb-2">技术小馆</h3>
                    <p class="text-gray-400">专业的开发技术分享平台</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="footer-link text-gray-300 hover:text-white transition duration-300">
                        <i class="fas fa-globe mr-2"></i>技术小馆地址：http://www.yuque.com/jtostring
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
                &copy; 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // Add smooth scrolling to all links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```